package fr.bda.cloud.data;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "data")
public class DataBloc {

	/** The position of bloc in the data */
	@XmlAttribute(name = "pos")
	private int dataBlocPosition;

	/** A bloc of the data */
	@XmlElement(name = "bloc")
	private Bloc dataBloc;

	/** The descriptor of the data */
	@XmlElement(name = "descriptor")
	private DataDescriptor dataDescriptor;

	public int getDataBlocPosition() {
		return dataBlocPosition;
	}

	public void setDataBlocPosition(int dataBlocPosition) {
		this.dataBlocPosition = dataBlocPosition;
	}

	public Bloc getDataBloc() {
		return dataBloc;
	}

	public void setDataBloc(Bloc dataBloc) {
		this.dataBloc = dataBloc;
	}

	public DataDescriptor getDataDescriptor() {
		return dataDescriptor;
	}

	public void setDataDescriptor(DataDescriptor dataDescriptor) {
		this.dataDescriptor = dataDescriptor;
	}

}
